import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./assets/icons"; // icon
import "./permission";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "@/assets/styles/index.scss"; // global css

import { parseTime, resetForm, addDateRange } from "@/utils/ruoyi";
import { download } from "@/utils/request";
import modal from "@/utils/modal";
// 分页组件
import Pagination from "@/components/Pagination";
// 文件上传组件
import FileUpload from "@/components/FileUpload";
Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.component("Pagination", Pagination);
Vue.component("FileUpload", FileUpload);
Vue.prototype.parseTime = parseTime;
Vue.prototype.resetForm = resetForm;
Vue.prototype.addDateRange = addDateRange;
Vue.prototype.download = download;
Vue.prototype.$modal = modal;
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
